package com.eshop.print;

public class OrderPrint
{
    private String title;
    private String price;
    private String num;
    
    public static OrderPrintBuilder builder() {
        return new OrderPrintBuilder();
    }
    
    public String getTitle() {
        return this.title;
    }
    
    public String getPrice() {
        return this.price;
    }
    
    public String getNum() {
        return this.num;
    }
    
    public void setTitle(final String title) {
        this.title = title;
    }
    
    public void setPrice(final String price) {
        this.price = price;
    }
    
    public void setNum(final String num) {
        this.num = num;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof OrderPrint)) {
            return false;
        }
        final OrderPrint other = (OrderPrint)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$title = this.getTitle();
        final Object other$title = other.getTitle();
        Label_0065: {
            if (this$title == null) {
                if (other$title == null) {
                    break Label_0065;
                }
            }
            else if (this$title.equals(other$title)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$price = this.getPrice();
        final Object other$price = other.getPrice();
        Label_0102: {
            if (this$price == null) {
                if (other$price == null) {
                    break Label_0102;
                }
            }
            else if (this$price.equals(other$price)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$num = this.getNum();
        final Object other$num = other.getNum();
        if (this$num == null) {
            if (other$num == null) {
                return true;
            }
        }
        else if (this$num.equals(other$num)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof OrderPrint;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $title = this.getTitle();
        result = result * 59 + (($title == null) ? 43 : $title.hashCode());
        final Object $price = this.getPrice();
        result = result * 59 + (($price == null) ? 43 : $price.hashCode());
        final Object $num = this.getNum();
        result = result * 59 + (($num == null) ? 43 : $num.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "OrderPrint(title=" + this.getTitle() + ", price=" + this.getPrice() + ", num=" + this.getNum() + ")";
    }
    
    public OrderPrint() {
    }
    
    public OrderPrint(final String title, final String price, final String num) {
        this.title = title;
        this.price = price;
        this.num = num;
    }
    
    public static class OrderPrintBuilder
    {
        private String title;
        private String price;
        private String num;
        
        OrderPrintBuilder() {
        }
        
        public OrderPrintBuilder title(final String title) {
            this.title = title;
            return this;
        }
        
        public OrderPrintBuilder price(final String price) {
            this.price = price;
            return this;
        }
        
        public OrderPrintBuilder num(final String num) {
            this.num = num;
            return this;
        }
        
        public OrderPrint build() {
            return new OrderPrint(this.title, this.price, this.num);
        }
        
        @Override
        public String toString() {
            return "OrderPrint.OrderPrintBuilder(title=" + this.title + ", price=" + this.price + ", num=" + this.num + ")";
        }
    }
}
